#ifndef _EEPROM_H_
#define _EEPROM_H_
#include"delay.h"

#include"i2c.h"

void eeprom_init(void);
//写入一个字节
void eeprom_write(uint8_t add,uint8_t data);
//接受一个字节
uint8_t eeprom_read(uint8_t adda);
//写入多个字节
void eemprom_writebytes(uint8_t add,uint8_t *buf,uint8_t size);
//读取多个字节
void eeprom_readbytes(uint8_t add,uint8_t *buf,uint8_t size);

#endif


